{% block connection %}
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
    <div class="myAccount">
        <a href="{{ path("fos_user_profile_show") }}">Compte</a>
    </div>
    <div class="decoAccount">
        <a href="{{ path("fos_user_security_logout") }}">Deconnexion</a>
    </div>
{% else %}
    <form action="{{ path("fos_user_security_check") }}" method="post">
        <input type="hidden" name="_csrf_token" value="{% render('PATUserBundle:User:getToken') %}" />

        <!--<label for="username">Login</label>-->
        <input type="text" id="username" name="_username" required="required" placeholder="Login" />

        <!--<label for="password">Mot de passe</label>-->
        <input type="password" id="password" name="_password" required="required" placeholder="Password" />

        <!--<input type="checkbox" id="remember_me" name="_remember_me" value="on" />-->
        <!--<label for="remember_me">Se souvenir de moi</label>-->

        <input type="submit" id="_submit" name="_submit" class="arrondi" value="OK" />
    </form>
    <div class="createAccount"><a href="{{ path("fos_user_registration_register") }}">Créer un compte</a></div>
{% endif %}
{% endblock %}